package worldinruin.core.imp.buildings;

import worldinruin.core.IResourceBuilding;
import worldinruin.core.IResources;
import worldinruin.core.ITile;
import worldinruin.core.IType;
import worldinruin.core.imp.Resources;


public class Stonemine implements IResourceBuilding {
	
	
	private static final long serialVersionUID = 1710288108513042657L;
	private String name;
	private ITile tile;
	private IType buildingType;
	private IResources price;
	private IResources productionRate;
	private String buildingDescription;
	
	/**
	 * Creates a stonemine on the given tile.
	 * @param tile Tile position.
	 */
	public Stonemine(ITile tile) {
		this();
		this.tile = tile;
	}
	
	/**
	 * Creates a stonemine.
	 */
	public Stonemine() {
		name = "Stone mine";
		buildingType = BuildingTypes.STONEMINE;
		price = new Resources(10, 10, 50, 10);
		productionRate = new Resources(0, 0, 50, 0);
		buildingDescription = "This building is a stonemine. Here you store stone.";
	}
	
	@Override
	public String getName() {
		return name;
	}
	
	@Override
	public ITile getTile() {
		return tile;
	}
	
	@Override
	public IResources getPrice() {
		return price;
	}
	
	@Override
	public IType getBuildingType() {
		return buildingType;
	}

	@Override
	public IResources getProductionRate() {
		return productionRate; 
	}
	
	@Override
	public String getBuildingDescription(){
		return buildingDescription;
	}
	
}
